package org.millioncall.yueyoga.admin.service.impl;

import java.util.Map;

import org.millioncall.openplatform.common.PaginatedList;
import org.millioncall.yueyoga.admin.dao.OrderDetailDAO;
import org.millioncall.yueyoga.admin.model.OrderDetail;
import org.millioncall.yueyoga.admin.service.OrderDetailService;

public class OrderDetailServiceImpl implements OrderDetailService {
	
	private OrderDetailDAO orderDetailDAO;

	public OrderDetailDAO getOrderDetailDAO() {
		return orderDetailDAO;
	}

	public void setOrderDetailDAO(OrderDetailDAO orderDetailDAO) {
		this.orderDetailDAO = orderDetailDAO;
	}

	@Override
	public OrderDetail findById(Integer id) {
		return this.orderDetailDAO.findById(id);
	}

	@Override
	public PaginatedList<OrderDetail> findInPage(Integer pageNo, Integer pageSize, String[] paramNames, String[] paramValues) {
		return this.orderDetailDAO.findInPage(pageNo, pageSize, paramNames, paramValues);
	}

	@Override
	public PaginatedList<OrderDetail> findInPage(Integer pageNo, Integer pageSize) {
		return this.orderDetailDAO.findInPage(pageNo, pageSize);
	}

	@Override
	public int save(OrderDetail order) {
		return this.orderDetailDAO.save(order);
	}

	@Override
	public int deleteByIds(String[] ids) {
		return this.orderDetailDAO.deleteByIds(ids);
	}

	@Override
	public PaginatedList<OrderDetail> findAll() {
		return this.orderDetailDAO.findAll();
	}

	@Override
	public PaginatedList<OrderDetail> findAllOrderDetail(Integer Id, Integer pageNo, Integer pageSize) {
		return this.orderDetailDAO.findAllOrderDetail(Id, pageNo, pageSize);
	}

	@Override
	public int update(OrderDetail od) {
		return this.orderDetailDAO.update(od);
	}

	@Override
	public PaginatedList<OrderDetail> findByOrderId(Integer start, Integer pageSize, Map<String, Object> map) {
		return this.orderDetailDAO.findByOrderId(start, pageSize, map);
	}

}
